package com.boot.persistence.condition.range;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 范围条件
 * @date 2020/6/8 14:02
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class RangeCondition<T> {

    private String column;

    private T begin;

    private T end;

    public void camelToUnderline() {
        column = StringUtils.camelToUnderline(column);
    }

}
